package com.xhh.nphm.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhh.nphm.system.domain.AiAnswer;
import com.xhh.nphm.system.domain.AiAnswerLog;
import com.xhh.nphm.system.mapper.AiAnswerDao;
import com.xhh.nphm.system.service.AiAnswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description: //TODO
 * @author: sun
 * @date: 2023-12-20 13:59
 * @version 1.0
 */
@Service
public class AiAnswerServiceImpl extends ServiceImpl<AiAnswerDao, AiAnswer> implements AiAnswerService {
    @Autowired
    private AiAnswerDao aiAnswerDao;


    @Override
    public int addAiAnswerLog(AiAnswerLog aiAnswerLog) {
        return aiAnswerDao.addAiAnswerLog(aiAnswerLog);
    }

    @Override
    public AiAnswer selectByUserNo(Long userId) {
        return aiAnswerDao.selectByUserNo(userId);
    }

    @Override
    public List<AiAnswer> selectAllConf() {
        return aiAnswerDao.selectAllConf();
    }
}
